#ifndef TEXTFONT_H_
#define TEXTFONT_H_

// By: Jesse Guarascia de Urena
// Text Font class
// Gives access to the FontManager for loading/rendering

#include "AssetManager.h"
#include <SDL.h>
#include <map>
#include <string>

class TextFont : AssetManager
{
private:
	enum FontType{
		NO_TYPE,
		EXT_FONT
	} type;

	int fontID; // Font ID for the text

	std::map<std::string, Texture2D *> textSurfaces;

	bool loaded; // W-o-N the text font has been loaded

public:
	TextFont(void);
	~TextFont(void);

	// Load a font file
	void Load(std::string font, int ptSize = 16);

	// Render text using the font
	void Render(std::string text, float x, float y, Color color);
	void Render(std::string text, Rect rect, Color color);
};

#endif // TEXTFONT_H_

